import Mock from 'mockjs'

function responseTemp(data) {
  return Mock.mock({
    code: '200',
    msg: '操作成功',
    ...data,
  })
}

Mock.mock('/user/login', () => {
  return responseTemp({
    data: {
      token: '123456',
    },
  })
})
